﻿#ifndef COUNTER_H
#define COUNTER_H

#include <QWidget>
#include <QTimer>
#include <QTextToSpeech>
namespace Ui {
class Counter;
}

class Counter : public QWidget
{
    Q_OBJECT

public:
    explicit Counter(QWidget *parent = nullptr);
    ~Counter();

private slots:
    void on_radioButton_clicked();
    void onTimeout();
    void on_pushButton_start_clicked();

    void on_pushButton_pause_clicked();

    void on_pushButton_clear_clicked();

private:
    Ui::Counter *ui;
    QTimer timer;
    int totTime;
    int step;
    int restTime;
    bool countdown;
    QTextToSpeech tts;
};

#endif // COUNTER_H
